package com.dalongxin.work.data;

import android.view.View;
import android.widget.ProgressBar;

/**
 * Created by 赵宇 on 2017/10/24.
 * 保存下载文件的数据
 */

public class CloudDiskDownloadItem {

    private int downloadId;
    private CloudDisk item; //文件数据
    private ProgressBar progressBar; //下载进度条
    private View downloadView; //下载按钮
    private View pauseView; //暂停按钮
    private long downloadedBytes; //已下载Bytes数
    private long totalBytes;


    public CloudDiskDownloadItem(CloudDisk item, ProgressBar progressBar, View downloadView, View pauseView) {
        this.item = item;
        this.progressBar = progressBar;
        this.downloadView = downloadView;
        this.pauseView = pauseView;
    }

    public int getDownloadId() {
        return downloadId;
    }

    public void setDownloadId(int downloadId) {
        this.downloadId = downloadId;
    }

    public ProgressBar getProgressBar() {
        return progressBar;
    }

    public void setProgressBar(ProgressBar progressBar) {
        this.progressBar = progressBar;
    }

    public CloudDisk getItem() {
        return item;
    }

    public void setItem(CloudDisk item) {
        this.item = item;
    }

    public View getDownloadView() {
        return downloadView;
    }

    public void setDownloadView(View downloadView) {
        this.downloadView = downloadView;
    }

    public View getPauseView() {
        return pauseView;
    }

    public void setPauseView(View pauseView) {
        this.pauseView = pauseView;
    }

    public long getDownloadedBytes() {
        return downloadedBytes;
    }

    public void setDownloadedBytes(long downloadedBytes) {
        this.downloadedBytes = downloadedBytes;
    }

    public long getTotalBytes() {
        return totalBytes;
    }

    public void setTotalBytes(long totalBytes) {
        this.totalBytes = totalBytes;
    }
}
